package audio

import (
	ffmpeg "github.com/u2takey/ffmpeg-go"
)

func VedioToAudio(vedioPath string, audioPath string, args map[string]interface{}) error {
	return ffmpeg.Input(vedioPath).Audio().Output(audioPath, args).OverWriteOutput().ErrorToStdOut().Run()
}
func VedioToPCM(vedioPath string, audioPath string) error {
	return ffmpeg.Input(vedioPath).Audio().Output(audioPath, ffmpeg.KwArgs{"f": "s16le"}).OverWriteOutput().ErrorToStdOut().Run()
}
